package com.jiage.sharedpreference;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

import com.jiage.sp.SDSpManager;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SDSpManager.getInstance().put("nnn","nnn");
        SDSpManager.getInstance().put("mmm",111);
        SDSpManager.getInstance().put("bbb",true);
        SDSpManager.getInstance().putInt("vvv",11);

        Log.e("nnn", SDSpManager.getInstance().get("nnn","111").toString());
        Log.e("mmm", SDSpManager.getInstance().get("mmm",222).toString());
        Log.e("bbb", SDSpManager.getInstance().get("bbb",false).toString());
        Log.e("vvv", SDSpManager.getInstance().getInt("vvv",0)+"");
        Log.e("ccc", SDSpManager.getInstance().getBoolean("ccc")+"");
    }
}